<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Trang left</title>
<script type="text/javascript" src="jquery.js"></script> 
<script type="text/javascript" src="jquery.corner.js"></script> 
<script> 
$(document).ready(function()
 { 
 $("#sptheohang22").corner ("8px bottom");
 $("#sptheohang12").corner ("8px bottom");
 $("#sptheohang32").corner ("8px bottom");
 $("#sptheohang42").corner ("8px bottom");
 $("#sptheohang5222").corner ("8px bottom");
  $("#sptheohang62").corner ("8px bottom");
  $("#xemthongtin").corner ("8px bottom");
  $("#sptheohang52").corner ("8px bottom");
}); 
</script>
</head>

<body>
<table width="200" border="0" cellspacing="0" cellpadding="0" id="banghanglaptop">
  <tr>
    <td id ="oleft2">&nbsp;</td>
    <td align="center" id="ocenter2">Tin mới</td>
    <td id="oright2">&nbsp;</td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0"id="sptheohang22">
  <tr>
    <td><?php include("tinmoi.php"); ?></td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0" id="banghanglaptop">
  <tr>
    <td id ="oleft2">&nbsp;</td>
    <td align="center" id="ocenter2">Đăng nhập</td>
    <td id="oright2">&nbsp;</td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0"id="sptheohang12">
  <tr>
    <td align="center">
  <?php
  /*
	include("kn.php");
	$user = $_POST["user"];
	$pass = $_POST["pass"];
	if(isset($_POST["user"])&&isset($_POST["pass"]))
	{
		$lenh = "select * from khachhang where user = '$user' and matkhau = '$pass'";
		$kq = mysql_query($lenh);
		$n = mysql_num_rows($kq);
		if($n > 0)
		{
			$_SESSION["user"]=$user;
			?>
            <script>
			alert('Đăng nhập thành công!');			
			</script>            
            <?php
		}
		else
		{
			?>
            <script>
			alert('Đăng nhập thất bại!');
			</script>
            <?php
		}
		
	}
	
	
	if(!$_SESSION["user"])
	{
    echo"<form id='form1' name='form1' method='post' action=''>
  <table width='100%' border='0' cellspacing='0' cellpadding='0'>
    <tr>
      <td width='81' align='center'>User</td>
      <td width='119' align='center'><label for='user'></label>
      <input name='user' type='text' id='user' size='15'/></td>
    </tr>
    <tr>
      <td align='center'>Pass</td>
      <td align='center'><label for='pass'></label>
      <input name='pass' type='password' id='pass' size='15'/></td>
    </tr>
    <tr>
      <td height='30' colspan='2' align='center'><input type='submit' name='dn' id='dn' value='Đăng nhập' style=' padding-left:15px; padding-right:15px; background-color:#FCC;border-radius:10px 10px 10px 10px' /><br><a href=index.php?act=dk>Đăng ký</a> | <a href=index.php?act=qmk>Quên mật khẩu</a></td>
    </tr>
  </table>
</form>";
	}
	else
	{
		$lenh2 = "select * from khachhang where user = '".$_SESSION["user"]."'";
		$kq2 = mysql_query($lenh2);
		$row2 = mysql_fetch_assoc($kq2);
		$n2 = mysql_num_rows($kq2);
		if($n2 > 0)
		$_SESSION["Macv"]=$row2["Macv"];
		
		if($_SESSION["Macv"]==0)
		{
		echo "Chào ".$row2["Tenkhachhang"]."<br>";
		echo"<a href='thoatnew.php'>Thoát</a>";
		}
		else
		{
			echo "Chào ".$row2["Tenkhachhang"]."<br>";
		
		echo"<a href='index.php?act=qt'>Quản trị</a>"." | ";
		echo"<a href='thoatnew.php'>Thoát</a>";
			
		}
		
	}
*/
include("dangnhap.php");
?>
 
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0" id="banghanglaptop">
  <tr>
    <td id ="oleft2">&nbsp;</td>
    <td align="center" id="ocenter2">Hỗ trợ trực tuyến</td>
    <td id="oright2">&nbsp;</td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0"id="sptheohang32">
  <tr>
    <td align="center"> <b>Hồng Vân</b></br><a href="ymsgr:sendim?losing_lord" title="Tư Vấn Hồng Vân"><img alt="" src="http://opi.yahoo.com/online?u=losing_lord&amp;m=g&amp;t=2"border="0" /></a></br>
    <b>Trúc Linh</b></br><a href="ymsgr:sendim?losing_lord" title="Tư Vấn Trúc Linh"><img alt="" src="http://opi.yahoo.com/online?u=losing_lord&amp;m=g&amp;t=2"border="0" /></a></br>
    <b>Ngọc Ngân</b></br><a href="ymsgr:sendim?losing_lord" title="Tư Vấn Ngọc Ngân"><img alt="" src="http://opi.yahoo.com/online?u=losing_lord&amp;m=g&amp;t=2"border="0" /></a></br></br></td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0" id="banghanglaptop">
  <tr>
    <td id ="oleft21">&nbsp;</td>
    <td align="center" id="ocenter2">Thống kê</td>
    <td id="oright21">&nbsp;</td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0"id="sptheohang42">
  <tr>
    <td align="center"><span>Số Người Truy Cập</span>
        <p class="count"><a href="http://www.amazingcounter.com"><img border="0" src="http://cb.amazingcounters.com/counter.php?i=2964771&c=8894626" alt="msn spaces analyzer" /></a></p>
        <span>Số Người Online</span>                        
        <p class="count"><script id="_waueb0">var _wau = _wau || []; _wau.push(["small", "3f8bar73qtzo", "eb0"]);(function() { var s=document.createElement("script"); s.async=true; s.src="http://widgets.amung.us/small.js";document.getElementsByTagName("head")[0].appendChild(s);})();</script>               
        </p>
</td>
  </tr>
</table>

<table width="200" border="0" cellspacing="0" cellpadding="0" id="banghanglaptop">
  <tr>
    <td id ="oleft2">&nbsp;</td>
    <td align="center" id="ocenter2">Giá vàng</td>
    <td id="oright2">&nbsp;</td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0"id="sptheohang52">
  <tr>
    <td id="bcbc">
   <iframe src="http://tienich.vnpec.com/gold/gold-3.php" frameborder="0" height=100 scrolling="no" width="98%"></iframe>
    </td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0" id="banghanglaptop">
  <tr>
    <td id ="oleft2">&nbsp;</td>
    <td align="center" id="ocenter2">Dự báo thời tiết</td>
    <td id="oright2">&nbsp;</td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0"id="sptheohang62">
  <tr>
    <td align="center">
   <table width="100%" border="0" cellspacing="0" cellpadding="0" id="xemthongtin">
  <tr>
    <td><iframe src="http://tienich.vnpec.com/weather/index-1.php" frameborder="0" height="230" scrolling="no" width="94%"></iframe></td>
  </tr>
</table>

    </td>
  </tr>
</table>
</body>
</html>